import service from "@/request/request.js"

// 获取验证码图片
export const CaptchaImg = () => {
    return service({
        method: 'GET',
        url: '/netshop/captcha/',
    })
}
// 登录附带token
export const CustomLoginService =(LoginForm)=>{
    return service({
        method:'POST',
        url:'/netshop/customLogin/',
        data:LoginForm
    })
}

// 将手机号发往后端
export const SmsmobileService = (mobile)=>{
    return service({
        method:'POST',
        url:'/netshop/smsmobile/',
        data:{
            mobile:mobile
        }
    })
}
// 注册
export const CustomRegistService = (RegistForm)=>{
    return service({
        method:'POST',
        url:'/netshop/register/',
        data:RegistForm
    })
}